
<template>
  <lm-scrollbar
    class="scrollbar"
    ref="scrollbarRef"
    :height="200"
    @scroll="scroll"
  >
    <p
      v-for="item in 20"
      :key="item"
    >{{ item }}</p>
  </lm-scrollbar>
  <input
    type="text"
    v-model="value"
  >
</template>
<script setup lang="ts">
import { ref } from 'vue';
const value = ref(0)
const scroll = ({ scrollTop }) => {
  value.value = scrollTop
}
</script>
